﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChongJu.EventManager
{
    public class LoginEvent
    {
        /// <summary>
        /// 用户登录 事件
        /// </summary>
        public static event Action<object, bool> LoginEventReport;


        /// <summary>
        /// 触发登录事件
        /// </summary>
        /// <param name="user">登录用户</param>
        /// <param name="isLogin">是否登录操作 true:登录  false:退出登录</param>
        public static void OnLoginEventReport(object user, bool isLogin)
        {
            LoginEventReport?.Invoke(user, isLogin);
        }
    }
}
